-- GENERATED SPELL FOR [Kolkar Bloodcharger] --


function spell0_3397(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3397', 30346, 1)
end

function spell1_3397(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(172,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3397', 12000, 1)
end

function Sorts_3397(pUnit, Event)
local choix_sorts_3397 = math.random(0, 1)
if choix_sorts_3397 == 0 then
pUnit:RegisterEvent('spell0_3397', 1, 1)
end
if choix_sorts_3397 == 1 then
pUnit:RegisterEvent('spell1_3397', 1, 1)
end
end

function mob3397_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3397', math.random(1500, 3000), 1)
end

function mob3397_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3397_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3397_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3397, 1, 'mob3397_Action')
RegisterUnitEvent(3397, 2, 'mob3397_Leave')
RegisterUnitEvent(3397, 3, 'mob3397_Kill')
RegisterUnitEvent(3397, 4, 'mob3397_Die')
